// import Vue from 'vue'
// import Vuex from 'vuex'
import user from './user'   //用户信息
import address from './address'  //收货地址
import bankCard from './bankCard'  //银行卡
import business from  './business'  //商家列表
import groupbuy from './groupBuy'   //针对某个商品的团购列表
import order from './order'   //订单
import homeList from './home' //首页列表
import collageList from './collage' // 拼购列表
import shareList from './share' // 共享商场
import categories from './categories'  //商品分类
import wallet from './wallet' //钱包
import shopCart from './shopCart'  //  购物车缓存
import payGoods from './paygoods'  //  去支付 订单跨页面vux缓存做数据转移
import wxConfig from './wx'  //微信config配置
import search from './search'   // 商品搜索
import config from './config'  //配置信息
import interactive from './interactive'   //交互
import modifyUser from './modifyUser'   //交互
import recommend from './recommend' //  为你推荐  TODO  meiyong
import supplier from './supplier'   // 供应商开店
import authorization from './authorization'   // 供应商开店

import router from './router'  //前端生成历史记录
Vue.use(Vuex)

export default new Vuex.Store({
    strict: process.env.NODE_ENV !== 'production', //在非生产环境下，使用严格模式
    modules: {
        user,
        address,
        groupbuy,
        order,
        homeList,
        categories,
        wallet,
        shopCart,
        payGoods,
        wxConfig,
        search,
        config,
        bankCard,
        interactive,
        business,
        collageList,
        shareList,
        modifyUser,
        recommend,
        supplier,
        router,
        authorization,
    }
})